using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace DTO
{
	/// <summary> 
	///Author: nnamthach@gmail.com 
	/// <summary>
	
    public class LIST_CMDInfo
    {
		#region Local Variable
		public enum Field
		{
			DTB,
			CmdID,
			Description,
			Suspend,
			CmdGroup,
			Context,
			CallingP,
			DAOG,
			CmdText,
			Template,
			Range,
			CONN_ID,
			IsSave,
			IsRefresh,
			P1,
			P2,
			P3,
			P4,
			P5,
			P6,
			P7,
			P8,
			P9,
			P10,
			L_P1,
			L_P2,
			L_P3,
			L_P4,
			L_P5,
			L_P6,
			L_P7,
			L_P8,
			L_P9,
			L_P10,
			R_P1,
			R_P2,
			R_P3,
			R_P4,
			R_P5,
			R_P6,
			R_P7,
			R_P8,
			R_P9,
			R_P10,
			Notes
		}
		private String _DTB;
		private String _CmdID;
		private String _Description;
		private String _Suspend;
		private String _CmdGroup;
		private String _Context;
		private String _CallingP;
		private String _DAOG;
		private String _CmdText;
		private String _Template;
		private String _Range;
		private String _CONN_ID;
		private String _IsSave;
		private String _IsRefresh;
		private String _P1;
		private String _P2;
		private String _P3;
		private String _P4;
		private String _P5;
		private String _P6;
		private String _P7;
		private String _P8;
		private String _P9;
		private String _P10;
		private String _L_P1;
		private String _L_P2;
		private String _L_P3;
		private String _L_P4;
		private String _L_P5;
		private String _L_P6;
		private String _L_P7;
		private String _L_P8;
		private String _L_P9;
		private String _L_P10;
		private String _R_P1;
		private String _R_P2;
		private String _R_P3;
		private String _R_P4;
		private String _R_P5;
		private String _R_P6;
		private String _R_P7;
		private String _R_P8;
		private String _R_P9;
		private String _R_P10;
		private String _Notes;
		
		public String DTB{	get{ return _DTB;} set{_DTB = value;} }
		public String CmdID{	get{ return _CmdID;} set{_CmdID = value;} }
		public String Description{	get{ return _Description;} set{_Description = value;} }
		public String Suspend{	get{ return _Suspend;} set{_Suspend = value;} }
		public String CmdGroup{	get{ return _CmdGroup;} set{_CmdGroup = value;} }
		public String Context{	get{ return _Context;} set{_Context = value;} }
		public String CallingP{	get{ return _CallingP;} set{_CallingP = value;} }
		public String DAOG{	get{ return _DAOG;} set{_DAOG = value;} }
		public String CmdText{	get{ return _CmdText;} set{_CmdText = value;} }
		public String Template{	get{ return _Template;} set{_Template = value;} }
		public String Range{	get{ return _Range;} set{_Range = value;} }
		public String CONN_ID{	get{ return _CONN_ID;} set{_CONN_ID = value;} }
		public String IsSave{	get{ return _IsSave;} set{_IsSave = value;} }
		public String IsRefresh{	get{ return _IsRefresh;} set{_IsRefresh = value;} }
		public String P1{	get{ return _P1;} set{_P1 = value;} }
		public String P2{	get{ return _P2;} set{_P2 = value;} }
		public String P3{	get{ return _P3;} set{_P3 = value;} }
		public String P4{	get{ return _P4;} set{_P4 = value;} }
		public String P5{	get{ return _P5;} set{_P5 = value;} }
		public String P6{	get{ return _P6;} set{_P6 = value;} }
		public String P7{	get{ return _P7;} set{_P7 = value;} }
		public String P8{	get{ return _P8;} set{_P8 = value;} }
		public String P9{	get{ return _P9;} set{_P9 = value;} }
		public String P10{	get{ return _P10;} set{_P10 = value;} }
		public String L_P1{	get{ return _L_P1;} set{_L_P1 = value;} }
		public String L_P2{	get{ return _L_P2;} set{_L_P2 = value;} }
		public String L_P3{	get{ return _L_P3;} set{_L_P3 = value;} }
		public String L_P4{	get{ return _L_P4;} set{_L_P4 = value;} }
		public String L_P5{	get{ return _L_P5;} set{_L_P5 = value;} }
		public String L_P6{	get{ return _L_P6;} set{_L_P6 = value;} }
		public String L_P7{	get{ return _L_P7;} set{_L_P7 = value;} }
		public String L_P8{	get{ return _L_P8;} set{_L_P8 = value;} }
		public String L_P9{	get{ return _L_P9;} set{_L_P9 = value;} }
		public String L_P10{	get{ return _L_P10;} set{_L_P10 = value;} }
		public String R_P1{	get{ return _R_P1;} set{_R_P1 = value;} }
		public String R_P2{	get{ return _R_P2;} set{_R_P2 = value;} }
		public String R_P3{	get{ return _R_P3;} set{_R_P3 = value;} }
		public String R_P4{	get{ return _R_P4;} set{_R_P4 = value;} }
		public String R_P5{	get{ return _R_P5;} set{_R_P5 = value;} }
		public String R_P6{	get{ return _R_P6;} set{_R_P6 = value;} }
		public String R_P7{	get{ return _R_P7;} set{_R_P7 = value;} }
		public String R_P8{	get{ return _R_P8;} set{_R_P8 = value;} }
		public String R_P9{	get{ return _R_P9;} set{_R_P9 = value;} }
		public String R_P10{	get{ return _R_P10;} set{_R_P10 = value;} }
		public String Notes{	get{ return _Notes;} set{_Notes = value;} }
		
        #endregion LocalVariable
        
        #region Constructor
		public LIST_CMDInfo()
		{
			_DTB = "";
			_CmdID = "";
			_Description = "";
			_Suspend = "";
			_CmdGroup = "";
			_Context = "";
			_CallingP = "";
			_DAOG = "";
			_CmdText = "";
			_Template = "";
			_Range = "";
			_CONN_ID = "";
			_IsSave = "";
			_IsRefresh = "";
			_P1 = "";
			_P2 = "";
			_P3 = "";
			_P4 = "";
			_P5 = "";
			_P6 = "";
			_P7 = "";
			_P8 = "";
			_P9 = "";
			_P10 = "";
			_L_P1 = "";
			_L_P2 = "";
			_L_P3 = "";
			_L_P4 = "";
			_L_P5 = "";
			_L_P6 = "";
			_L_P7 = "";
			_L_P8 = "";
			_L_P9 = "";
			_L_P10 = "";
			_R_P1 = "";
			_R_P2 = "";
			_R_P3 = "";
			_R_P4 = "";
			_R_P5 = "";
			_R_P6 = "";
			_R_P7 = "";
			_R_P8 = "";
			_R_P9 = "";
			_R_P10 = "";
			_Notes = "";
		}
		public LIST_CMDInfo(
		String DTB,
		String CmdID,
		String Description,
		String Suspend,
		String CmdGroup,
		String Context,
		String CallingP,
		String DAOG,
		String CmdText,
		String Template,
		String Range,
		String CONN_ID,
		String IsSave,
		String IsRefresh,
		String P1,
		String P2,
		String P3,
		String P4,
		String P5,
		String P6,
		String P7,
		String P8,
		String P9,
		String P10,
		String L_P1,
		String L_P2,
		String L_P3,
		String L_P4,
		String L_P5,
		String L_P6,
		String L_P7,
		String L_P8,
		String L_P9,
		String L_P10,
		String R_P1,
		String R_P2,
		String R_P3,
		String R_P4,
		String R_P5,
		String R_P6,
		String R_P7,
		String R_P8,
		String R_P9,
		String R_P10,
		String Notes
		)
		{
			_DTB = DTB;
			_CmdID = CmdID;
			_Description = Description;
			_Suspend = Suspend;
			_CmdGroup = CmdGroup;
			_Context = Context;
			_CallingP = CallingP;
			_DAOG = DAOG;
			_CmdText = CmdText;
			_Template = Template;
			_Range = Range;
			_CONN_ID = CONN_ID;
			_IsSave = IsSave;
			_IsRefresh = IsRefresh;
			_P1 = P1;
			_P2 = P2;
			_P3 = P3;
			_P4 = P4;
			_P5 = P5;
			_P6 = P6;
			_P7 = P7;
			_P8 = P8;
			_P9 = P9;
			_P10 = P10;
			_L_P1 = L_P1;
			_L_P2 = L_P2;
			_L_P3 = L_P3;
			_L_P4 = L_P4;
			_L_P5 = L_P5;
			_L_P6 = L_P6;
			_L_P7 = L_P7;
			_L_P8 = L_P8;
			_L_P9 = L_P9;
			_L_P10 = L_P10;
			_R_P1 = R_P1;
			_R_P2 = R_P2;
			_R_P3 = R_P3;
			_R_P4 = R_P4;
			_R_P5 = R_P5;
			_R_P6 = R_P6;
			_R_P7 = R_P7;
			_R_P8 = R_P8;
			_R_P9 = R_P9;
			_R_P10 = R_P10;
			_Notes = Notes;
		}
		public LIST_CMDInfo(DataRow dr)
		{
			if (dr != null)
			{
				_DTB = dr[Field.DTB.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.DTB.ToString()]);
				_CmdID = dr[Field.CmdID.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.CmdID.ToString()]);
				_Description = dr[Field.Description.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Description.ToString()]);
				_Suspend = dr[Field.Suspend.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Suspend.ToString()]);
				_CmdGroup = dr[Field.CmdGroup.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.CmdGroup.ToString()]);
				_Context = dr[Field.Context.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Context.ToString()]);
				_CallingP = dr[Field.CallingP.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.CallingP.ToString()]);
				_DAOG = dr[Field.DAOG.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.DAOG.ToString()]);
				_CmdText = dr[Field.CmdText.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.CmdText.ToString()]);
				_Template = dr[Field.Template.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Template.ToString()]);
				_Range = dr[Field.Range.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Range.ToString()]);
				_CONN_ID = dr[Field.CONN_ID.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.CONN_ID.ToString()]);
				_IsSave = dr[Field.IsSave.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.IsSave.ToString()]);
				_IsRefresh = dr[Field.IsRefresh.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.IsRefresh.ToString()]);
				_P1 = dr[Field.P1.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P1.ToString()]);
				_P2 = dr[Field.P2.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P2.ToString()]);
				_P3 = dr[Field.P3.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P3.ToString()]);
				_P4 = dr[Field.P4.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P4.ToString()]);
				_P5 = dr[Field.P5.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P5.ToString()]);
				_P6 = dr[Field.P6.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P6.ToString()]);
				_P7 = dr[Field.P7.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P7.ToString()]);
				_P8 = dr[Field.P8.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P8.ToString()]);
				_P9 = dr[Field.P9.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P9.ToString()]);
				_P10 = dr[Field.P10.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.P10.ToString()]);
				_L_P1 = dr[Field.L_P1.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P1.ToString()]);
				_L_P2 = dr[Field.L_P2.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P2.ToString()]);
				_L_P3 = dr[Field.L_P3.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P3.ToString()]);
				_L_P4 = dr[Field.L_P4.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P4.ToString()]);
				_L_P5 = dr[Field.L_P5.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P5.ToString()]);
				_L_P6 = dr[Field.L_P6.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P6.ToString()]);
				_L_P7 = dr[Field.L_P7.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P7.ToString()]);
				_L_P8 = dr[Field.L_P8.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P8.ToString()]);
				_L_P9 = dr[Field.L_P9.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P9.ToString()]);
				_L_P10 = dr[Field.L_P10.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.L_P10.ToString()]);
				_R_P1 = dr[Field.R_P1.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P1.ToString()]);
				_R_P2 = dr[Field.R_P2.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P2.ToString()]);
				_R_P3 = dr[Field.R_P3.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P3.ToString()]);
				_R_P4 = dr[Field.R_P4.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P4.ToString()]);
				_R_P5 = dr[Field.R_P5.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P5.ToString()]);
				_R_P6 = dr[Field.R_P6.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P6.ToString()]);
				_R_P7 = dr[Field.R_P7.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P7.ToString()]);
				_R_P8 = dr[Field.R_P8.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P8.ToString()]);
				_R_P9 = dr[Field.R_P9.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P9.ToString()]);
				_R_P10 = dr[Field.R_P10.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.R_P10.ToString()]);
				_Notes = dr[Field.Notes.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Notes.ToString()]);
			}
		}
        public LIST_CMDInfo(DataRowView dr)
        {
            if (dr != null)
            {
                _DTB = dr[Field.DTB.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.DTB.ToString()]);
                _CmdID = dr[Field.CmdID.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.CmdID.ToString()]);
                _Description = dr[Field.Description.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.Description.ToString()]);
                _Suspend = dr[Field.Suspend.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.Suspend.ToString()]);
                _CmdGroup = dr[Field.CmdGroup.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.CmdGroup.ToString()]);
                _Context = dr[Field.Context.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.Context.ToString()]);
                _CallingP = dr[Field.CallingP.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.CallingP.ToString()]);
                _DAOG = dr[Field.DAOG.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.DAOG.ToString()]);
                _CmdText = dr[Field.CmdText.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.CmdText.ToString()]);
                _Template = dr[Field.Template.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.Template.ToString()]);
                _Range = dr[Field.Range.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.Range.ToString()]);
                _CONN_ID = dr[Field.CONN_ID.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.CONN_ID.ToString()]);
                _IsSave = dr[Field.IsSave.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.IsSave.ToString()]);
                _IsRefresh = dr[Field.IsRefresh.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.IsRefresh.ToString()]);
                _P1 = dr[Field.P1.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P1.ToString()]);
                _P2 = dr[Field.P2.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P2.ToString()]);
                _P3 = dr[Field.P3.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P3.ToString()]);
                _P4 = dr[Field.P4.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P4.ToString()]);
                _P5 = dr[Field.P5.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P5.ToString()]);
                _P6 = dr[Field.P6.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P6.ToString()]);
                _P7 = dr[Field.P7.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P7.ToString()]);
                _P8 = dr[Field.P8.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P8.ToString()]);
                _P9 = dr[Field.P9.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P9.ToString()]);
                _P10 = dr[Field.P10.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.P10.ToString()]);
                _L_P1 = dr[Field.L_P1.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P1.ToString()]);
                _L_P2 = dr[Field.L_P2.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P2.ToString()]);
                _L_P3 = dr[Field.L_P3.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P3.ToString()]);
                _L_P4 = dr[Field.L_P4.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P4.ToString()]);
                _L_P5 = dr[Field.L_P5.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P5.ToString()]);
                _L_P6 = dr[Field.L_P6.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P6.ToString()]);
                _L_P7 = dr[Field.L_P7.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P7.ToString()]);
                _L_P8 = dr[Field.L_P8.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P8.ToString()]);
                _L_P9 = dr[Field.L_P9.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P9.ToString()]);
                _L_P10 = dr[Field.L_P10.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.L_P10.ToString()]);
                _R_P1 = dr[Field.R_P1.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P1.ToString()]);
                _R_P2 = dr[Field.R_P2.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P2.ToString()]);
                _R_P3 = dr[Field.R_P3.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P3.ToString()]);
                _R_P4 = dr[Field.R_P4.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P4.ToString()]);
                _R_P5 = dr[Field.R_P5.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P5.ToString()]);
                _R_P6 = dr[Field.R_P6.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P6.ToString()]);
                _R_P7 = dr[Field.R_P7.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P7.ToString()]);
                _R_P8 = dr[Field.R_P8.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P8.ToString()]);
                _R_P9 = dr[Field.R_P9.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P9.ToString()]);
                _R_P10 = dr[Field.R_P10.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.R_P10.ToString()]);
                _Notes = dr[Field.Notes.ToString()] == DBNull.Value ? "" : Convert.ToString(dr[Field.Notes.ToString()]);
            }
        }
		public LIST_CMDInfo(LIST_CMDInfo objEntr)
		{			
			_DTB = objEntr.DTB;			
			_CmdID = objEntr.CmdID;			
			_Description = objEntr.Description;			
			_Suspend = objEntr.Suspend;			
			_CmdGroup = objEntr.CmdGroup;			
			_Context = objEntr.Context;			
			_CallingP = objEntr.CallingP;			
			_DAOG = objEntr.DAOG;			
			_CmdText = objEntr.CmdText;			
			_Template = objEntr.Template;			
			_Range = objEntr.Range;			
			_CONN_ID = objEntr.CONN_ID;			
			_IsSave = objEntr.IsSave;			
			_IsRefresh = objEntr.IsRefresh;			
			_P1 = objEntr.P1;			
			_P2 = objEntr.P2;			
			_P3 = objEntr.P3;			
			_P4 = objEntr.P4;			
			_P5 = objEntr.P5;			
			_P6 = objEntr.P6;			
			_P7 = objEntr.P7;			
			_P8 = objEntr.P8;			
			_P9 = objEntr.P9;			
			_P10 = objEntr.P10;			
			_L_P1 = objEntr.L_P1;			
			_L_P2 = objEntr.L_P2;			
			_L_P3 = objEntr.L_P3;			
			_L_P4 = objEntr.L_P4;			
			_L_P5 = objEntr.L_P5;			
			_L_P6 = objEntr.L_P6;			
			_L_P7 = objEntr.L_P7;			
			_L_P8 = objEntr.L_P8;			
			_L_P9 = objEntr.L_P9;			
			_L_P10 = objEntr.L_P10;			
			_R_P1 = objEntr.R_P1;			
			_R_P2 = objEntr.R_P2;			
			_R_P3 = objEntr.R_P3;			
			_R_P4 = objEntr.R_P4;			
			_R_P5 = objEntr.R_P5;			
			_R_P6 = objEntr.R_P6;			
			_R_P7 = objEntr.R_P7;			
			_R_P8 = objEntr.R_P8;			
			_R_P9 = objEntr.R_P9;			
			_R_P10 = objEntr.R_P10;			
			_Notes = objEntr.Notes;			
		}
        #endregion Constructor
        
        #region InitTable
		public static DataTable ToDataTable()
		{
			DataTable dt = new DataTable("LIST_CMD");
			dt.Columns.AddRange(new DataColumn[] { 
				new DataColumn(Field.DTB.ToString(), typeof(String)),
				new DataColumn(Field.CmdID.ToString(), typeof(String)),
				new DataColumn(Field.Description.ToString(), typeof(String)),
				new DataColumn(Field.Suspend.ToString(), typeof(String)),
				new DataColumn(Field.CmdGroup.ToString(), typeof(String)),
				new DataColumn(Field.Context.ToString(), typeof(String)),
				new DataColumn(Field.CallingP.ToString(), typeof(String)),
				new DataColumn(Field.DAOG.ToString(), typeof(String)),
				new DataColumn(Field.CmdText.ToString(), typeof(String)),
				new DataColumn(Field.Template.ToString(), typeof(String)),
				new DataColumn(Field.Range.ToString(), typeof(String)),
				new DataColumn(Field.CONN_ID.ToString(), typeof(String)),
				new DataColumn(Field.IsSave.ToString(), typeof(String)),
				new DataColumn(Field.IsRefresh.ToString(), typeof(String)),
				new DataColumn(Field.P1.ToString(), typeof(String)),
				new DataColumn(Field.P2.ToString(), typeof(String)),
				new DataColumn(Field.P3.ToString(), typeof(String)),
				new DataColumn(Field.P4.ToString(), typeof(String)),
				new DataColumn(Field.P5.ToString(), typeof(String)),
				new DataColumn(Field.P6.ToString(), typeof(String)),
				new DataColumn(Field.P7.ToString(), typeof(String)),
				new DataColumn(Field.P8.ToString(), typeof(String)),
				new DataColumn(Field.P9.ToString(), typeof(String)),
				new DataColumn(Field.P10.ToString(), typeof(String)),
				new DataColumn(Field.L_P1.ToString(), typeof(String)),
				new DataColumn(Field.L_P2.ToString(), typeof(String)),
				new DataColumn(Field.L_P3.ToString(), typeof(String)),
				new DataColumn(Field.L_P4.ToString(), typeof(String)),
				new DataColumn(Field.L_P5.ToString(), typeof(String)),
				new DataColumn(Field.L_P6.ToString(), typeof(String)),
				new DataColumn(Field.L_P7.ToString(), typeof(String)),
				new DataColumn(Field.L_P8.ToString(), typeof(String)),
				new DataColumn(Field.L_P9.ToString(), typeof(String)),
				new DataColumn(Field.L_P10.ToString(), typeof(String)),
				new DataColumn(Field.R_P1.ToString(), typeof(String)),
				new DataColumn(Field.R_P2.ToString(), typeof(String)),
				new DataColumn(Field.R_P3.ToString(), typeof(String)),
				new DataColumn(Field.R_P4.ToString(), typeof(String)),
				new DataColumn(Field.R_P5.ToString(), typeof(String)),
				new DataColumn(Field.R_P6.ToString(), typeof(String)),
				new DataColumn(Field.R_P7.ToString(), typeof(String)),
				new DataColumn(Field.R_P8.ToString(), typeof(String)),
				new DataColumn(Field.R_P9.ToString(), typeof(String)),
				new DataColumn(Field.R_P10.ToString(), typeof(String)),
				new DataColumn(Field.Notes.ToString(), typeof(String))
			});
			return dt;
		}
		public DataRow ToDataRow(DataTable dt)
		{
			DataRow row = dt.NewRow();
			row[Field.DTB.ToString()] = _DTB;
			row[Field.CmdID.ToString()] = _CmdID;
			row[Field.Description.ToString()] = _Description;
			row[Field.Suspend.ToString()] = _Suspend;
			row[Field.CmdGroup.ToString()] = _CmdGroup;
			row[Field.Context.ToString()] = _Context;
			row[Field.CallingP.ToString()] = _CallingP;
			row[Field.DAOG.ToString()] = _DAOG;
			row[Field.CmdText.ToString()] = _CmdText;
			row[Field.Template.ToString()] = _Template;
			row[Field.Range.ToString()] = _Range;
			row[Field.CONN_ID.ToString()] = _CONN_ID;
			row[Field.IsSave.ToString()] = _IsSave;
			row[Field.IsRefresh.ToString()] = _IsRefresh;
			row[Field.P1.ToString()] = _P1;
			row[Field.P2.ToString()] = _P2;
			row[Field.P3.ToString()] = _P3;
			row[Field.P4.ToString()] = _P4;
			row[Field.P5.ToString()] = _P5;
			row[Field.P6.ToString()] = _P6;
			row[Field.P7.ToString()] = _P7;
			row[Field.P8.ToString()] = _P8;
			row[Field.P9.ToString()] = _P9;
			row[Field.P10.ToString()] = _P10;
			row[Field.L_P1.ToString()] = _L_P1;
			row[Field.L_P2.ToString()] = _L_P2;
			row[Field.L_P3.ToString()] = _L_P3;
			row[Field.L_P4.ToString()] = _L_P4;
			row[Field.L_P5.ToString()] = _L_P5;
			row[Field.L_P6.ToString()] = _L_P6;
			row[Field.L_P7.ToString()] = _L_P7;
			row[Field.L_P8.ToString()] = _L_P8;
			row[Field.L_P9.ToString()] = _L_P9;
			row[Field.L_P10.ToString()] = _L_P10;
			row[Field.R_P1.ToString()] = _R_P1;
			row[Field.R_P2.ToString()] = _R_P2;
			row[Field.R_P3.ToString()] = _R_P3;
			row[Field.R_P4.ToString()] = _R_P4;
			row[Field.R_P5.ToString()] = _R_P5;
			row[Field.R_P6.ToString()] = _R_P6;
			row[Field.R_P7.ToString()] = _R_P7;
			row[Field.R_P8.ToString()] = _R_P8;
			row[Field.R_P9.ToString()] = _R_P9;
			row[Field.R_P10.ToString()] = _R_P10;
			row[Field.Notes.ToString()] = _Notes;
			return row;
		}
        #endregion InitTable
    }
}
